At the beginning of the external Libraries in addition to the JDK Step TwoSo what did I do after I found out why?1, will need to be cited in the project clean2. Install again3, finally reimport the whole projectIdea maven lacks dependencies, project does not lead to MAVEN's jar package problem
The previous introduction of using the Spring-boot-maven-plugin plugin to hit the jar package will import all the dependent files and then become an executable jar package. The downside of this is that I don't actually need to break the dependent jar into the generated jar package, just
How maven adds Jar pack dependencies to Web projects createtime--2018 April 19 19:06:21author:marydonDevelopment tools: Eclipse1. Open pom.xml file--Switch to Pom.xml view--2. On the Build tab, create a dependencies tag, and the introduction of the jar package is placed inside the tag;3. See which jar packages are refe
Let the compiled jar package contain all dependencies so that it can be run independently.
In the section called "Running the Simple Weather Program", we executed the Simple Weather application using the Maven Exec plugin. while the Maven Exec plugin executed the program and produced some output, you shouldn't look to
Troubled two days of the problem, very headache, and today finally have a solution to the idea, in the final analysis, or to maven enough to understand it. Always complaining about Maven is not good use, there are all kinds of unreasonable problems, originally these are attributed to it is not enough to understand the familiarity, it provides a good solution to the idea, but we usually do not know.Issue bac
Idea is built into the MAVEN environment, and MAVEN resolves project dependencies by default. After you create a new project, the Pom.xml file is generated in the path of the project and
Project name. iml file. When you create a new project, idea does not automatically refresh Maven
com.newhero.project:project-dao:jar:0.0.1-snapshot:could not find art Ifact Com.newhero.project:project-parent:pom:0.0.1-snapshot [Help 1][ERROR][ERROR] The full stack trace of the errors, re-run Maven with THE-E switch.[ERROR] Re-run Maven using The-x switch to enable full debug logging.[ERROR][ERROR] For more information on the errors and possible solutions, please read the following articles:[ERROR] [He
Explanation: That is, the project to use a certain A.jar package, through the introduction of MAVEN, and automatically import the package that the jar depends on, there is a problem, if the A.jar package depends on B.jar 1.0 version of this project, but my project has B.jar this project 2.0 version, here will The solut
A jar package Commons-io-2.4.jar is referenced in the MAVEN project , because the referenced jar package relies on Hibernate-jpa-2.0-api , and Hibernate-jpa-2.0-api there is a bug, will reportError:java.lang.NoSuchMethodError:javax.persistence.JoinColumn.foreignKey () Ljavax/persistence/foreignkey;OrJava.lang.NoSuchMethodError:javax.persistence.Table.indexes () [
Maven Parent-child relationship
The parent project must be packaged in a pom such as
Child project inherits most of the properties of the parent project using
Parent Project
Sub-project
maven Specifies the packing method type (Jar,war) and the package name,
Specify the name of the packaged file under some directories, exclude some directories, introduce s
Original article Source: http://blog.csdn.net/skyhsu/article/details/8534320
After importing Maven project with IntelliJ Idea (version:12u), I found that there were no jar packs in external libraries, one of them was added to death. Google a bit, only to know that there is a IntelliJ called "Maven Projects" tab window, click on its toolbar, "Reimport All Maven P
Maven learning notes (1): Maven coordinates and dependencies, maven learning notes
Maven was introduced to the company and soon became fascinated by the features that Maven does not need to manually copy numerous jar packages to t
The reason: Eclipse did not find Maven dependencies after introducing the MAVEN project. Make the code error, as shown in the following figure:
and the normal MAVEN project is this.
To solve the problem, reload, so that the Maven jar is imported. There are several ways
First, a MAVEN project was built today, and after the introduction of dependencies in the Pom.xml file, it was found that there was no Maven dependencies file in the project structure (below), but Maven was found in the Java Build path D
Maven Dependencies and mavendependencies cannot be found in Maven projects of eclipse.I have come back for food. Stupid birds do not have to fly first, but they must stick to it.
Record a primary error today
For example, we create a maven project in eclipse to run our web project.
After the project is built, all
Delivery dependency is one of the most distinctive and convenient features of Maven, and can save a lot of configuration. such as a dependent b,b dependency C default A will also depend on C. But there are also pitfalls, such as version conflicts. Of course, MAVEN also considers the solution, you can use exclusions to exclude the corresponding repeat dependency.But we also have a serious problem, and that i
Watched the video really can not help on the idea of pirate but this thing really a bit of pit dad, because the use of fewer people, so a lot of configuration is problematicFor example, MAVEN configures the Tomcat hot update and the MAVEN configuration of TomcatI'll put some pictures here for backup.Configure MAVEN Web project with Tomcat you must choose this but
How to Use Yum to download and install the RPM package and its dependencies, and use yumrpm Dependencies
Today, when installing Perl-IPC-cmd, we found many dependencies.
Run Yum install? Perl-IPC-cmd looks like this:
Updating: glibc-common-2.17-196.el7_4.2.x86_64 1/22 updating: glibc-2.17-196.el7_4.2.x86_64 2/
\ filename. jar[ INFO] Installing C:\users\admini~1\appdata\local\temp\mvninstall1993617445439338455.pom to C:\Users\Administrator\ . m2\repository\ Organization name \ Project name \ version number \ filename. pom[info]---------------------------------------------------------------------- --[info] BUILD success[info]------------------------------------------------------------------------[INFO] Total time:30.436 S[info] finished at:2016-05-21t22:16:10+08:00[info] Final Memory:9m/183m[info] ----
a for c->b->a
C arrives B for C->b
For example:
The version of Commons-io in A is 2.4
The version of Commons-io in B is 2.0
C relies on the b,b dependent on a
The JUnit package for C is version 2.0.
Because the reliance on short circuit is preferred
2. If both roads are the same length.
C arrives at a for c->a
C arrives B for C->b
Look at the two projects that are dependent on the Pom file who is in front of which version
For example:
The Common-io u
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.